package com.biz.primus.app.rest.degraded;

import com.biz.primus.app.rest.feign.DepotFeignClient;
import com.biz.primus.model.depot.vo.DepotRespVo;
import com.biz.primus.model.depot.vo.FreightTemplateDetailRespVo;
import com.biz.primus.model.depot.vo.SearchDepotConditionVo;
import com.biz.primus.model.depot.vo.SearchDepotResVo;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Optional;

/**
 * DegradedDepotFeignClient
 *
 * @author JKLiues
 * @date 2017年11月14日
 */
@Component
@Slf4j
public class DegradedDepotFeignClient implements DepotFeignClient {
    @Override
    public Optional<DepotRespVo> getByDepotCodeFRdb(String depotCode) {
        return Optional.empty();
    }

    @Override
    public SearchDepotResVo searchNearbyDepot(SearchDepotConditionVo vo) {
        return new SearchDepotResVo();
    }

    @Override
    public List<DepotRespVo> findNearDepots(SearchDepotConditionVo vo) {
        return Lists.newArrayList();
    }

    @Override
    public List<FreightTemplateDetailRespVo> getAllAvailableFreight() {
        return Lists.newArrayList();
    }
}